package com.zz.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zz.common.R;
import com.zz.dto.PublicityDto;
import com.zz.entity.Publicity;

import javax.annotation.Nullable;
import javax.servlet.http.HttpServletRequest;

/**
 * 宣传方案service
 *
 * @author HUAWEI
 */
public interface PublicityService extends IService<Publicity> {
    /**
    * 按活动id 宣传方案展示
    * */
    R<PublicityDto> info(int activityId);

    /**
    * 增加宣传方案
    * */
    R<String> add(Publicity publicity, HttpServletRequest request);

    /**
    * 修改宣传方案
    * */
    R<String> update(Publicity publicity);

    /**
    * 删除宣传方案
    * */
    R<String> delete(Publicity publicity);
}
